<template>
  <div :class="!isFullScreen ? 'chart' : 'fullScreen'">
    <div :class="!isFullScreen ? 'chartHeader' : 'chartHeaderFullScreen'">
      <div class="chartHeaderMenu" style="cursor: pointer">
        <div
          :class="
            active == 1
              ? isFullScreen
                ? 'chartHeaderMenuList activedImg1'
                : 'chartHeaderMenuList actived'
              : 'chartHeaderMenuList'
          "
          @click="active = 1"
        >
          <i class="icon iconfont iconshouye1"></i>
          首页
        </div>
        <div
          :class="
            active == 2
              ? isFullScreen
                ? 'chartHeaderMenuList activedImg2'
                : 'chartHeaderMenuList actived'
              : 'chartHeaderMenuList'
          "
          @click="active = 2"
        >
          <i class="icon iconfont iconwenjianjia"></i>
          项目展示
        </div>
        <div
          :class="
            active == 3
              ? isFullScreen
                ? 'chartHeaderMenuList activedImg2'
                : 'chartHeaderMenuList actived'
              : 'chartHeaderMenuList'
          "
          @click="active = 3"
        >
          <i class="icon iconfont iconicon_mingong"></i>
          民工信息展示
        </div>
      </div>
    </div>
    <bigScreenHome v-if="active == 1"></bigScreenHome>
    <projectDisplay v-if="active == 2"></projectDisplay>
    <workerInformation v-if="active == 3"></workerInformation>
  </div>
</template>
<script>
import workerInformation from '../chuzhouBigScreen/workerInformation'
import projectDisplay from '../chuzhouBigScreen/projectDisplay'
import bigScreenHome from '../chuzhouBigScreen/bigScreenHome'
export default {
  name: 'chuhzhouChart',
  components: {
    workerInformation,
    projectDisplay,
    bigScreenHome,
  },
  data() {
    return {
      isFullScreen: false,
      active: 1,
    }
  },
  created() {
    // this.$nextTick(function(){
    //   localStorage.setItem("urlName","constructMonitorHome");
    // })
  },
}
</script>
<style lang="less" scoped>
.containerRouterViewWrap.containerRouterView {
  height: 100% !important;
  position: absolute !important;
  overflow-y: auto;
  top: 0px !important;
  left: 0px !important;
  right: 0px !important;
  bottom: 0px !important;
  padding-right: 24px;
  background-color: #1e4260 !important;
}
.containerRouterViewWrap .chart {
  background-color: #1e4260 !important;
  height: calc(100% - 121px);
  padding: 0 10px 10px;
}
.actived {
  color: #3affd1 !important;
  cursor: pointer;
  background-image: linear-gradient(
    180deg,
    rgba(0, 215, 205, 0) 0%,
    rgba(52, 255, 219, 0.4) 100%
  );
}
.chartHeaderMenuList {
  cursor: pointer;
  &:hover {
    cursor: pointer;
  }
}
.activedImg1 {
  color: #3affd1 !important;
  background-image: url('../../assets/list1.png');
  background-size: 100% 100%;
}
.activedImg2 {
  color: #3affd1 !important;
  background-image: url('../../assets/list2.png');
  background-size: 100% 100%;
}
.fullScreen {
  background-color: #31546b;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  height: calc(100%);
  padding: 0 10px 10px;
}
.chartHeader {
  height: 45px;
  line-height: 56px;
  position: relative;
  &Area {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 2001;
  }
  &Date {
    position: absolute;
    top: 12px;
    right: 0;
    z-index: 2001;
    font-size: 16px;
    line-height: 32px;
    height: 32px;
    color: #fff;
    span {
      color: #53ffac;
      font-size: 22px;
    }
    .fullScreenIcon {
      width: 32px;
      height: 32px;
      display: inline-block;
      text-align: center;
    }
  }
  .chartHeaderMenu {
    width: 100%;
    text-align: center;
    &List {
      display: inline-block;
      width: 126px;
      height: 32px;
      line-height: 32px;
      color: #fff;
      font-size: 16px;
      text-align: center;
    }
  }
}
.chartHeaderAreaFullScreen {
  position: absolute;
  top: 79px;
}
.choseArea {
  z-index: 2005;
  /deep/ .el-cascader {
    height: 28px;
    line-height: 28px;
    /deep/ .el-input {
      height: 28px;
      line-height: 28px;
      .el-input__inner {
        background-color: #1c405b;
        border-color: transparent;
        height: 28px;
        line-height: 28px;
      }
    }
  }
  /deep/.el-input__suffix {
    top: 0 !important;
    height: 28px !important;
    line-height: 28px;
    .el-input__icon {
      height: 28px !important;
      line-height: 28px;
    }
  }
}
.chartHeaderFullScreen {
  height: 116px;
  position: relative;
  .chartHeaderArea {
    position: absolute;
    line-height: 56px;
    top: 35px;
    left: 0;
    height: 32px;
    z-index: 2001;
  }
  .chartHeaderDate {
    position: absolute;
    line-height: 32px;
    top: 35px;
    right: 0;

    height: 32px;
    // z-index: 2001;
    font-size: 16px;
    color: #fff;
    span {
      color: #53ffac;
      font-size: 22px;
    }
    .fullScreenIcon {
      width: 32px;
      height: 32px;
      display: inline-block;
      text-align: center;
    }
  }
  .chartHeaderMenu {
    width: 34%;
    position: absolute;
    line-height: 32px;
    top: 35px;
    left: 0;

    height: 32px;
    z-index: 2001;
    font-size: 16px;
    color: #fff;
    &List {
      cursor: pointer;
      display: inline-block;
      width: 32%;
      height: 32px;
      line-height: 32px;
      color: #fff;
      font-size: 16px;
      text-align: center;
      position: relative;
    }
  }
  .chartHeaderTitle {
    width: 100%;
    text-align: center;
    height: 67px;
    letter-spacing: 0.96px;
    line-height: 58px;
    font-weight: bold;
    font-size: 24px;
    color: #fff;
    background: url('../../assets/screenBg.png') no-repeat;
    background-size: 100% 100%;
  }
}
.chartMain {
  height: calc(100% - 56px);
}
.chartMainFullScreen {
  height: calc(100% - 116px);
}
main {
  .el-row {
    height: calc(100%);
    .el-col {
      height: calc(100%);
      .chartList {
        background-color: rgba(29, 65, 96, 0.5);
        padding: 0 10px;
        height: calc(35% - 5px);
        position: relative;
        &:first-child {
          height: calc(65% - 5px);
          margin-bottom: 10px;
        }
        .chartTitle {
          height: 16px;
          line-height: 16px;
          border-left: 3px solid #009588;
          padding-left: 8px;
          left: 10px;
          position: absolute;
          font-size: 16px;
          color: #ffffff;
          top: 16px;
        }
        .chartContent {
          padding-top: 15px;
          height: calc(100%);
        }
      }
    }
  }
  .chartListLeftTop {
    padding: 0 10px;
    .bussinessTotal {
      height: calc(40%);
      line-height: 1;
      border-bottom: 1px solid #1c405b;
      padding-top: 20px;
      .total {
        width: 100%;
        text-align: center;
        li {
          display: inline-block;
          width: 32px;
          height: 45px;
          line-height: 45px;
          margin-right: 6px;
          background-color: #1c405b;
          color: #53ffac;
          font-size: 40px;
          background-image: url('./../../assets/cocle.png');
          background-size: 100% 100%;
        }
      }
      .title {
        height: 16px;
        line-height: 16px;
        font-size: 16px;
        color: #fff;
        margin-top: 16px;
        text-align: center;
      }
      .list {
        margin-top: 12px;
        width: 100%;
        text-align: center;
        li {
          display: inline-block;
          width: 31%;
          text-align: center;
          .num {
            font-size: 20px;
            line-height: 24px;
            color: #53ffac;
          }
          .name {
            font-size: 14px;
            line-height: 18px;
            color: #7193b2;
          }
        }
      }
    }
    .creditLevel {
      height: calc(60%);
      position: relative;
    }
  }
  .chartListLast {
    background-color: #31546b !important;
    padding: 0 !important;
  }
  .chartListRightBottom {
    position: relative;
    display: inline-block;
    background-color: rgba(29, 65, 96, 0.5);
    padding: 0 10px;
    width: calc(50% - 5px);
    height: calc(100%);
  }
}
</style>

<style>
.el-cascader-menu {
  min-width: 120px;
}
</style>
